// --------------------------------------------------------------------------------------------------------------------
// <copyright file="OpenFileDialog.cs" company="GT">
//   Gunther Taborga
// </copyright>
// <summary>
//   Defines the OpenFileDialog type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace BatchID3.Editor.Dialogs
{
    using System.Windows.Forms;

    public class OpenFileDialog : IOpenFileDialog
    {
        private readonly System.Windows.Forms.OpenFileDialog openFileDialog;

        public OpenFileDialog()
        {
            this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
        }

        public string Filter
        {
            get
            {
                return this.openFileDialog.Filter;
            }

            set
            {
                this.openFileDialog.Filter = value;
            }
        }

        public string DefaultExt
        {
            get
            {
                return this.openFileDialog.DefaultExt;
            }

            set
            {
                this.openFileDialog.DefaultExt = value;
            }
        }

        public bool Multiselect
        {
            get
            {
                return this.openFileDialog.Multiselect;
            }

            set
            {
                this.openFileDialog.Multiselect = value;
            }
        }

        public string[] FileNames
        {
            get
            {
                return this.openFileDialog.FileNames;
            }
        }

        public DialogResult ShowDialog(IWin32Window owner)
        {
            return this.openFileDialog.ShowDialog(owner);
        }

        public void Dispose()
        {
            this.openFileDialog.Dispose();
        }
    }
}